﻿using Microsoft.EntityFrameworkCore;
using T_settlement.Domain;

namespace T_settlement.Infrastructure
{
    public class MyDbContext:DbContext
    {
        public MyDbContext(DbContextOptions<MyDbContext>options):base(options) { }


        /// <summary>
        /// 收费信息表
        /// </summary>
        public DbSet<Settlement>? Settlement { get; set; }  

       /// <summary>
       /// 付费信息表
       /// </summary>
        public DbSet<PayMoney>? PayMoney { get; set; }  


        /// <summary>
        /// 进项发票信息
        /// </summary>
        public DbSet<Invoice>? Invoice { get; set; }  

        /// <summary>
        /// 销项发票
        /// </summary>
        public DbSet<Output>? Outputs { get; set; }  

        /// <summary>
        /// 付款
        /// </summary>
        public DbSet<Payment>? Payment { get; set; }  
    }
}